﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterAdmin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Permissao"] != null)
        {
            if (Session["Permissao"].ToString() == "Master" )
            {
                ltllogo.Text = "Olá, " + Session["usuario"].ToString() + "&nbsp;&nbsp;&nbsp;[<a href='logoff.aspx'>Logoff</a>]";
                pnlMenu.Visible = true;
                pnlUsuario.Visible = true;
            }
            else if (Session["Permissao"].ToString() == "Administrador") 
            {
                ltllogo.Text = "Olá, " + Session["usuario"].ToString() + "&nbsp;[Logoff]";
                pnlMenu.Visible = true;
                pnlUsuario.Visible = false;
            
            }

        }
    }
}
